package pack2;

public class PLS2PLS implements Comparable <PLS2PLS>  {

	public String h1;
	public int imsi1;
	public long c1;
	public long t1;
	public double lat1;
	public double lon1;
	public double r1;
	public String h2;
	public int imsi2;
	public long c2;
	public long t2;
	public double lat2;
	public double lon2;
	public double r2;
	public double dist; 
	
	public PLS2PLS(String p1, int i1, long ci1, long ti1, double la1, double lo1, double ra1, String p2, int i2, long ci2, long ti2, double la2, double lo2, double ra2){
		
		this.h1 = p1;
		this.imsi1 = i1;
		this.c1 = ci1;
		this.t1= ti1;
		this.lat1 = la1;
		this.lon1 = lo1;
		this.r1 = ra1;
		this.h2 = p2;
		this.imsi2 = i2;
		this.c2 = ci2;
		this.t2= ti2;
		this.lat2 = la2;
		this.lon2 = lo2;
		this.r2 = ra2;
	}
	public int compareTo(PLS2PLS pl){
		return h2.compareTo(pl.h2);
	}
	public String toString(){
		return h1+""+imsi1+""+c1+""+t1+""+lat1+""+lon1+""+r1+""+h2+""+imsi2+""+c2+""+t2+""+lat2+""+lon2+""+r2;
	}
	
}
